.class public Lcom/instagram/android/people/activity/PeopleTagActivity;
.super Lcom/instagram/android/fragment/do;
.source "PeopleTagActivity.java"

# interfaces
.implements Lcom/instagram/android/people/b/l;


# instance fields
.field private p:Lcom/instagram/model/people/b;

.field private s:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/pendingmedia/model/FaceBox;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 24
    invoke-direct {p0}, Lcom/instagram/android/fragment/do;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/instagram/android/model/b/e;)V
    .locals 2
    .parameter

    .prologue
    .line 88
    invoke-virtual {p0}, Lcom/instagram/android/people/activity/PeopleTagActivity;->f()Landroid/support/v4/app/r;

    move-result-object v0

    const-string v1, "PeopleTagFragment"

    invoke-virtual {v0, v1}, Landroid/support/v4/app/r;->a(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/people/b/a;

    .line 90
    if-eqz v0, :cond_0

    .line 91
    invoke-virtual {v0, p1}, Lcom/instagram/android/people/b/a;->a(Lcom/instagram/android/model/b/e;)V

    .line 93
    :cond_0
    return-void
.end method

.method public h()V
    .locals 2

    .prologue
    .line 97
    invoke-virtual {p0}, Lcom/instagram/android/people/activity/PeopleTagActivity;->f()Landroid/support/v4/app/r;

    move-result-object v0

    const-string v1, "PeopleTagFragment"

    invoke-virtual {v0, v1}, Landroid/support/v4/app/r;->a(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/people/b/a;

    .line 99
    if-eqz v0, :cond_0

    .line 100
    invoke-virtual {v0}, Lcom/instagram/android/people/b/a;->a()V

    .line 102
    :cond_0
    return-void
.end method

.method public i()Lcom/instagram/model/people/b;
    .locals 1

    .prologue
    .line 119
    iget-object v0, p0, Lcom/instagram/android/people/activity/PeopleTagActivity;->p:Lcom/instagram/model/people/b;

    return-object v0
.end method

.method public j()Ljava/util/ArrayList;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/pendingmedia/model/FaceBox;",
            ">;"
        }
    .end annotation

    .prologue
    .line 123
    iget-object v0, p0, Lcom/instagram/android/people/activity/PeopleTagActivity;->s:Ljava/util/ArrayList;

    return-object v0
.end method

.method public onBackPressed()V
    .locals 3

    .prologue
    .line 106
    invoke-virtual {p0}, Lcom/instagram/android/people/activity/PeopleTagActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "media_id"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 109
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 110
    const-string v1, "people_tags"

    iget-object v2, p0, Lcom/instagram/android/people/activity/PeopleTagActivity;->p:Lcom/instagram/model/people/b;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 111
    const-string v1, "face_rectangles"

    iget-object v2, p0, Lcom/instagram/android/people/activity/PeopleTagActivity;->s:Ljava/util/ArrayList;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 112
    const/4 v1, -0x1

    invoke-virtual {p0, v1, v0}, Lcom/instagram/android/people/activity/PeopleTagActivity;->setResult(ILandroid/content/Intent;)V

    .line 115
    :cond_0
    invoke-super {p0}, Lcom/instagram/android/fragment/do;->onBackPressed()V

    .line 116
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4
    .parameter "savedInstanceState"

    .prologue
    .line 46
    invoke-super {p0, p1}, Lcom/instagram/android/fragment/do;->onCreate(Landroid/os/Bundle;)V

    .line 48
    if-eqz p1, :cond_1

    .line 49
    const-string v0, "people_tags"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getParcelableArrayList(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    .line 51
    new-instance v1, Lcom/instagram/model/people/b;

    invoke-direct {v1, v0}, Lcom/instagram/model/people/b;-><init>(Ljava/util/List;)V

    iput-object v1, p0, Lcom/instagram/android/people/activity/PeopleTagActivity;->p:Lcom/instagram/model/people/b;

    .line 52
    const-string v0, "face_rectangles"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getParcelableArrayList(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/people/activity/PeopleTagActivity;->s:Ljava/util/ArrayList;

    .line 65
    :goto_0
    sget v0, Lcom/facebook/ax;->activity_capture:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/people/activity/PeopleTagActivity;->setContentView(I)V

    .line 67
    new-instance v0, Lcom/instagram/android/people/b/a;

    invoke-direct {v0}, Lcom/instagram/android/people/b/a;-><init>()V

    .line 68
    invoke-virtual {p0}, Lcom/instagram/android/people/activity/PeopleTagActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/people/b/a;->g(Landroid/os/Bundle;)V

    .line 70
    invoke-virtual {p0}, Lcom/instagram/android/people/activity/PeopleTagActivity;->f()Landroid/support/v4/app/r;

    move-result-object v1

    .line 71
    sget v2, Lcom/facebook/aw;->layout_container_main:I

    invoke-virtual {v1, v2}, Landroid/support/v4/app/r;->a(I)Landroid/support/v4/app/Fragment;

    move-result-object v1

    .line 72
    if-nez v1, :cond_0

    .line 73
    invoke-virtual {p0}, Lcom/instagram/android/people/activity/PeopleTagActivity;->f()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/r;->a()Landroid/support/v4/app/af;

    move-result-object v1

    .line 74
    sget v2, Lcom/facebook/aw;->layout_container_main:I

    const-string v3, "PeopleTagFragment"

    invoke-virtual {v1, v2, v0, v3}, Landroid/support/v4/app/af;->b(ILandroid/support/v4/app/Fragment;Ljava/lang/String;)Landroid/support/v4/app/af;

    .line 75
    invoke-virtual {v1}, Landroid/support/v4/app/af;->a()I

    .line 77
    :cond_0
    return-void

    .line 54
    :cond_1
    invoke-virtual {p0}, Lcom/instagram/android/people/activity/PeopleTagActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "people_tags"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    .line 56
    invoke-virtual {p0}, Lcom/instagram/android/people/activity/PeopleTagActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "face_rectangles"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v1

    iput-object v1, p0, Lcom/instagram/android/people/activity/PeopleTagActivity;->s:Ljava/util/ArrayList;

    .line 57
    if-nez v0, :cond_2

    .line 59
    new-instance v0, Lcom/instagram/model/people/b;

    invoke-direct {v0}, Lcom/instagram/model/people/b;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/people/activity/PeopleTagActivity;->p:Lcom/instagram/model/people/b;

    goto :goto_0

    .line 61
    :cond_2
    new-instance v1, Lcom/instagram/model/people/b;

    invoke-direct {v1, v0}, Lcom/instagram/model/people/b;-><init>(Ljava/util/List;)V

    iput-object v1, p0, Lcom/instagram/android/people/activity/PeopleTagActivity;->p:Lcom/instagram/model/people/b;

    goto :goto_0
.end method

.method protected onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 2
    .parameter "outState"

    .prologue
    .line 81
    invoke-super {p0, p1}, Lcom/instagram/android/fragment/do;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 82
    const-string v0, "people_tags"

    iget-object v1, p0, Lcom/instagram/android/people/activity/PeopleTagActivity;->p:Lcom/instagram/model/people/b;

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putParcelableArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V

    .line 83
    const-string v0, "face_rectangles"

    iget-object v1, p0, Lcom/instagram/android/people/activity/PeopleTagActivity;->s:Ljava/util/ArrayList;

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putParcelableArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V

    .line 84
    return-void
.end method
